package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class LotteryBean implements Serializable , IJsonParser{

	/**
	 *     {
            "lottery_type": 1,
            "name": "刮刮卡",
            "lottery_id": 32
        },
	 */
	private static final long serialVersionUID = -834485217470094125L;
    private int lottery_type;
    private String name;
    private String lottery_id;
	

	public void setName(String name) {
		this.name = name;
	}

	public void setLottery_id(String lottery_id) {
		this.lottery_id = lottery_id;
	}

	public int getLottery_type() {
		return lottery_type;
	}

	public String getName() {
		return name;
	}

	public String getLottery_id() {
		return lottery_id;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, LotteryBean.class);
		}
		return null;
	}

}
